package xiangya.bysj.mapper.interf;

import java.util.List;

import xiangya.bysj.entity.User;

public interface UserMapper extends MapperInterface<User> {

	// ͨ��id
	public User selectById(int id) throws Exception;

	// ͨ���˺� ��½
	public User selectByAccount(String account) throws Exception;

	// ͨ���ֻ��һ�����
	public User selectByPhone(String phone) throws Exception;

	/**
	 * 通过名字模糊查询
	 * 
	 * @param name
	 *            名字
	 * @return list集合
	 * @throws Exception
	 */
	public List<User> selectByName(String name) throws Exception;

	public List<User> selectUser();

}
